#include "BasResLimit.h"

int BasResLimit::_countId = 0;

BasResLimit::BasResLimit(time_t flightDate, string base, string acTypeCrews, double dailyCnt)
    : _flightDate(flightDate), _base(base), _acTypeCrews(acTypeCrews), _dailyCnt(dailyCnt) {
    _id = _countId++;
}

BasResLimit::~BasResLimit() {}

void BasResLimit::print() {
    cout << "ICPResLimit-> id-" << _id << " flightDate-" << getTimeStr(_flightDate) << " base-" << _base
         << " acTypeCrews-" << _acTypeCrews << " dailyCnt-" << _dailyCnt << endl;
}
